import service from "./request";

// 专业管理
export function studentpage(params,page =1){
    return service({
    url: '/admin/student/page/' + page,
    method: 'get',
    params: params
  })
}
// 专业 页数
export function studentpageCount(params){
    return service({
    url: '/admin/student/page/count',
    method: 'get',
    params: params
  })
}
// 班级的名称/admin/department/names
export function classnames(){
    return service({
    url: '/admin/class/names',
    method: 'get',
  })
}
// 添加
export function studentadd(data){
    return service({
    url: '/admin/student/',
    method: 'post',
    data
  })
}
// 删除
export function studentdelet(id){
    return service({
    url: '/admin/student/'+id,
    method: 'delete',
  })
}
// id获取信息
export function studentdetail(id){
    return service({
    url: '/admin/student/'+id,
    method: 'get',
  })
}
// 编辑
export function studentedit(data){
    return service({
    url: '/admin/student/',
    method: 'put',
    data
  })
}